package com.hw.protocol.tool.controller;

import de.felixroske.jfxsupport.FXMLController;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.TextArea;
import javafx.stage.Stage;

/**
 * @author : lihy
 * @date : 2024/3/15 10:52
 * description:
 */
@FXMLController
public class AboutController {

    @FXML
    public TextArea txtRemark;

    @FXML
    public Button btnClose;

    public void initialize() {
        String remark = "1、选择协议\n" +
                "2、若是加密协议则需要在“开始-->密钥”中输入密钥\n" +
                "3、输入指令\n" +
                "4、点击“解析”按钮\n" +
                "5、在“开始-->历史”中可以查看解析历史记录";
        txtRemark.setText(remark);
    }

    @FXML
    public void close(ActionEvent actionEvent) {
        Stage stage = (Stage) btnClose.getScene().getWindow();
        stage.close();
    }
}
